/*
*Author 		Sherman. f
*Version		1
*/

package jtk.project4.fleet.field;

import jtk.project4.fleet.domain.Equipment;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.MemoField;
import nl.coderight.jazz.form.field.TextField;

public class AttachmentField  extends GroupControl<Equipment> {

	private MemoField attachmentField;
	private TextField descriptionField;
	
	
		public AttachmentField(String bindID) {
			setTitle("header.Attachment");
			setBindID(bindID);
			createFields();
			createLayout();
		}

	private void createFields(){
		attachmentField = new MemoField("Attachment");
		attachmentField.setEditable(true);
		attachmentField.setRows(5);
		
		descriptionField = new TextField("Description",10);
		attachmentField.setRows(3);
		
	}
	private void createLayout(){
		setLayout(new FormLayout())
		.addLabel("Attachment")	.addField(attachmentField)
		.addRow()
		.addLabel("Descripton")	.addField(descriptionField)
		
		
		;
		
	}
	
}
